package com.tinyspot.concrete.feign.controller;

import com.tinyspot.concrete.feign.service.AdminService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Tinyspot
 * @date 2022-12-24 21:10
 */
@RestController
public class AdminController {

    @Resource
    private AdminService adminService;

    @RequestMapping("/show")
    public String show() {
        return "show";
    }

    @RequestMapping("/invoke")
    public String invoke(String message) {
        return adminService.invoke(message);
    }
}
